<?php

// zet de links van het login form onder de submit knop
function urania_form_user_login_block_alter(&$form) {
  $form['links']['#weight'] = 200;
}

function urania_preprocess_node(&$variables) {
  $variables['submitted'] =  t('!datetime <em>by !username</em>',
                    array(
                    '!username' => $variables['name'],
                    '!datetime' => format_date($variables['changed'], 'custom', 'h:i d/m'),
                    ));
}

function urania_preprocess_comment(&$variables) {
  $comment = $variables['elements']['#comment'];
  $node = $variables['elements']['#node'];
  $variables['created']   = format_date($comment->created, 'custom', 'd/m/Y');
  $variables['changed']   = format_date($comment->changed, 'custom', 'd/m/Y');
}

function urania_preprocess_page(&$variables) {
  $img = array(
      'path' => drupal_get_path('theme', 'urania') . '/images/bg.jpg', 
      'alt' => 'background image',
      );
  $variables['background_image'] = theme('image', $img);

}